package com.ocl.www.service;

import com.ocl.www.domain.LyComment;
import com.ocl.www.mapper.LyCommentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/5/28.
 */
@Service
public class LyCommentService {

    @Autowired
    private LyCommentMapper lyCommentMapper ;


//    public int insertlyArticle(Lyarticle art) throws  Exception{
//        // TODO Auto-generated method stub
//        int c =  0;
//
//        c =  lyarticleMapper.insertlyArticle(art);
//
//        return c;
//    }

    public List<LyComment> selectlyCommentList(LyComment lyComment) throws Exception{

        List<LyComment> lyCommentList = lyCommentMapper.selectlyCommentList(lyComment);

        return lyCommentList;
    }

    public int addComm(LyComment lyComment)  throws Exception{

        int c = lyCommentMapper.addComm(lyComment);

        return c;
    }

    public List<LyComment> selectlyCommentList2(LyComment lyComment) throws Exception{

        List<LyComment> lyCommentList = lyCommentMapper.selectlyCommentList2(lyComment);

        return lyCommentList;
    }

//    public Lyarticle getArticle(Lyarticle lyarticle)  throws Exception{
//
//        return lyarticleMapper.getArticle(lyarticle);
//    }

}
